<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" type="text/css" href="./css/min.css" media="screen and (max-width:960px)" />
    <link rel="stylesheet" type="text/css" href="./css/pc.css" media="screen and (min-width:1200px)" />
    <link rel="stylesheet" type="text/css" href="./css/common.css"/>
</head>

<body>
    <div class="container">
        <button class="menu" onclick="showMenu()">菜单按钮</button>
        <!-- 导航头部 -->
        <div class="navbar" id="menu">
            <ul>
                <li>测试1</li>
                <li>测试2</li>
                <li>测试3</li>
                <li>测试4</li>
            </ul>
        </div>
    </div>
    <script>
        let showMenu =  function() {
            console.log("测试")
            let button = document.getElementById("menu");
            button.classList.add("menushow")
            button.style.display="inline";
        }
    </script>
</body>

</html>